markup language
Học thuậtThân thiện
Definition
Noun: A markup language is a system of codes, or tags, used to annotate a text document. These codes provide instructions about the document's structure, formatting, or meaning, which can then be interpreted by a computer program to properly display or process the text.
Usage
A markup language uses special symbols (tags) embedded within a document's text to define elements like headings, paragraphs, lists, and links. It separates the content of a document from instructions on how that content should be presented.
Examples
- HTML (HyperText Markup Language) is a common markup language used to create web pages.
- XML (eXtensible Markup Language) is a flexible markup language designed to store and transport data.
- The document was written using a simple markup language to indicate italics and bold text.
Advanced Usage
- Descriptive vs. Presentational: Some markup languages (like XML) are primarily , focusing on what the data . Others (like historical HTML) included markup, focusing on how data should . Modern best practice emphasizes using markup for structure and semantics, while using separate stylesheets (like CSS) for presentation.
- Semantic Markup: This refers to using markup tags that convey the of the content (e.g., , , for emphasis) rather than just its appearance, which improves accessibility and machine-readability.
Variants and Related Words
- Markup (n): The process of applying tags to a document, or the tags themselves.
- The editor checked the XML markup for errors.
- Mark up (v): The act of applying markup to a document.
- You need to mark up the headings before publishing.
Synonyms
- Annotation system
- Tagging system
- Structuring language
Related Phrases
- Standard Generalized Markup Language (SGML): A meta-language for defining markup languages, from which both HTML and XML are derived.
- Lightweight Markup Language: A simpler markup syntax designed for easy readability and writing, often used for documentation (e.g., Markdown, reStructuredText).
Noun
- a set of symbols and rules for their use when doing a markup of a document